//
// Created by liu on 2019/10/5.
//

#include "AbstractoryFactory.h"
# include <iostream>

Mouth* HPFactory::CreateMouth() {
    return new HPMouth();
}

Mouth* DellFactory::CreateMouth() {
    return new DellMouth();
}

KeyBord* HPFactory::CreateKeyBord() {
    return new HPKeyBord();
}

KeyBord* DellFactory::CreateKeyBord() {
    return new DellKeyBord();
}

void HPMouth::Say() {
    std::cout<<"HP`s Mouth is created"<<std::endl;
}

void DellMouth::Say() {
    std::cout<<"Dell`s Mouth is created"<<std::endl;
}

void HPKeyBord::Say() {
    std::cout<<"HP`s KeyBord is created"<<std::endl;
}

void DellKeyBord::Say() {
    std::cout<<"Dell`s KeyBord is created"<<std::endl;
}